<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<link href="style/style.css" rel="stylesheet" type="text/css">
<link href="style/global.css" rel="stylesheet" type="text/css"><script type="text/javascript" src="<%=basePath%>/js/global.js"></script>
<!--如用到jqueryBox必须引入 -->
<jsp:include page="/jqueryInclude.jsp" />
<div class="rightCon" align="center">
	<div class="rightTitle" align="left">
		<h3>
			<s:property value="nav" escape="false"/>
		</h3>
	</div>
	<table class="listTable"  cellspacing="1">
		<tr class="listTitle">
			<td width="6%" class="title2">
				序号
			</td>
			<td width="15%" class="title2">
				权限名称
			</td>
			<td width="25%" class="title2">
				权限代码
			</td>
			<td width="15%" class="title2">
				代码简称
			</td>
			<td width="30%" class="title2">
				权限描述
			</td>
			<td width="11%" class="title2">
				操作
			</td>
		</tr>
		<s:iterator id="right" value="%{list}" status="stuts">
			<tr class="listTr">
				<td>
					<s:property value="#stuts.count" />
				</td>
				<td>
					<a href="viewRight.do?right.id=<s:property value="#right.id" />"><font
						color="blue"><s:property value="#right.name" /> </font> </a>
				</td>
				<td>
					<s:property value="#right.code" />
				</td>
				<td>
					<s:property value="#right.simplecode" />
				</td>
				<td>
					<s:property value="#right.note" />
				</td>
				<td>
					
					<a
						href="viewRight.do?action=before&right.id=<s:property value="#right.id" />"><img src="images/btn/look.gif" alt="查看"/></a>

					
					<a
						href="updateRight.do?action=before&right.id=<s:property value="#right.id" />"><img src="images/system/edit.gif" alt="修改"/></a>
					
					<a
						href="javascript:if(confirm('您真的要删除吗?点击确认进行删除！否则请点取消'))window.location='delRight.do?right.id=<s:property value="#right.id" />'"><img src="images/system/delete.gif" alt="删除"/></a>
				</td>
			</tr>
		</s:iterator>
	</table>
	<table width="92%" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td width="52%" height="38">
				<a href="addRight.do?action=before" class="search button01">添加</a>
				<a
					onclick="jBox.open('div-jBoxID','div','search1','按条件查询','width=700,height=160,center=true,minimizable=true,resize=false,draggable=true,model=false');"
					href="javascript://" class="search button01">查询</a>
			</td>
			<td width="48%" align="right">
				<span style="text-align: center">${pageStr}</span>
			</td>
		</tr>
	</table>
</div>
<div id="search1" style="display: none">
	<form method="post" action="listRight.do">
		<table class="searchTable">
			<tr>
				<td width="25%" align="right" height="30">
					权限名称：
				</td>
				<td width="20%" align="left">
					<input type="text" name="right.name" title="角色名称">
				</td>
				<td width="15%" align="right">
					权限代码：
				</td>
				<td width="50%" align="left">
					<input type="text" name="right.code" title="角色代码">
				</td>
			</tr>
			<tr>
				<td width="30%" align="center" colspan="4">
					<input class="buttonSearch" id="button2" type="submit" value="搜索" />
					&nbsp;&nbsp;&nbsp;&nbsp;
					<input class="buttonSearch" id="button2" type="reset" value="重置" />
				</td>
			</tr>
		</table>
	</form>
</div>